package com.platform.system.service;

import com.platform.common.core.domain.AjaxResult;
import com.platform.common.core.page.TableDataInfo;
import com.platform.system.domain.dto.device.UpgradeTaskDto;
import com.platform.system.domain.vo.device.ChatBackgroundMusicVo;
import com.platform.system.domain.vo.device.HumanModelManagerVo;
import com.platform.system.domain.vo.device.UpgradeTaskVo;

/**
 * @author Huangkai
 */
public interface ISysUpgradeTaskService {

    /**
     * 分页查询升级信息
     * @param upgradeTaskVo
     * @return
     */
    TableDataInfo selectUpgradeTaskList(UpgradeTaskVo upgradeTaskVo);

    /**
     * 获取当前最新的升级包
     * @param upgradeTaskVo
     * @return
     */
    UpgradeTaskDto selectUpgradeTaskMostNew(UpgradeTaskVo upgradeTaskVo);


    /**
     * 查询详情
     * @param uid
     * @return
     */
    UpgradeTaskDto selectUpgradeTask(String uid);


    /**
     * 创建升级任务
     * @param upgradeTaskVo
     * @return
     */
    AjaxResult insertUpgradeTask(UpgradeTaskVo upgradeTaskVo);

    /**
     * 任务开始
     * @param upgradeTaskVo
     * @return
     */
    AjaxResult updateUpgradeTaskStatus(UpgradeTaskVo upgradeTaskVo);

    /**
     * 更新
     * @param upgradeTaskVo
     * @return
     */
    AjaxResult updateUpgradeTask(UpgradeTaskVo upgradeTaskVo);

    /**
     * 删除任务
     * @param upgradeTaskVo
     * @return
     */
    AjaxResult deleteUpgradeTask(UpgradeTaskVo upgradeTaskVo);
}
